#ifndef rbac_env_h__
#define rbac_env_h__
#include <vector>

enum editor_opt{
	edit_create,
	edit_update,
	edit_remove
};

typedef		int			key32;
typedef		void*		role_admin;
typedef		void*		privilege_admin;
typedef		void*		resource_admin;

typedef		std::vector<key32>			key_vec;
struct rbac_error_t 
{
  /** error code */
  int	error_code;
  char	msg[256];
};

typedef struct rbac_error_t  rbac_error,*prbac_error;

#define			invalid_key			((key32)-1)
#endif // rbac_env_h__
